github-ci: error on any shell errors
authorAlois Klink <[email protected]>
Wed, 23 Nov 2022 18:37:01 +0000 (18:37 +0000)
committerJosef Schlehofer <[email protected]>
Mon, 23 Oct 2023 15:00:24 +0000 (17:00 +0200)
commit397d7afbd05341c6a688200926ff40df258a9b4f
tree5f4ed66829c69088ca41da7bd99b77159bd94335
parent4ed33a15c38b69287dde781f699fbdc9df49273b
github-ci: error on any shell errors

Enable `errexit` and `nounset` [POSIX shell options][1]
in `.github/workflows/entrypoint.sh` so that the script fails
if any command within the script fails.

[1]: https://pubs.opengroup.org/onlinepubs/9699919799//utilities/V3_chap02.html#set

Reported-by: Marius Dinu <[email protected]>
Fixes: https://github.com/openwrt/packages/issues/19953
Signed-off-by: Alois Klink <[email protected]>
(cherry picked from commit 03ca0722f73c8121521ff59ca9a4ad6358b6a262)
.github/workflows/entrypoint.sh